/**
 * Created by Administrator on 2022/8/12.
 */
class Dog{
    public String name;
    public String colour;
    public void call() {
        System.out.println(name+"汪汪叫");
    }
    public void shake() {
        System.out.println(name+"摇尾巴");
    }
}
public class Test{
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "阿黄";
        dog.colour = "黄色";
        dog.call();
        dog.shake();

        Dog dog2 = new Dog();
        dog.name = "多多";
        dog.colour = "黑色";
        dog.call();
        dog.shake();
    }
}